#pragma once
#include <windows.h>
#include <string>

namespace WinApp
{
	class Config
	{
	public:
		Config(const std::string& filename);
		~Config(void);
		int GetInteger(const std::string& AppName, const std::string& KeyName, const int defaultValue = -1);
		std::string GetString(const std::string& AppName, const std::string& KeyName, const char* defaultValue = 0);
	private:
		std::string m_FileName;
		char m_Buf[256];
	};
}